home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / mkmf / RCS / Makefile.library,v < prev    next >
Makefile  |  1992-06-10  |  9KB  |  553 lines

  1. head     1.16;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.16
  10. date     92.06.10.13.04.33;  author jhh;  state Exp;
  11. branches ;
  12. next     1.15;
  13.  
  14. 1.15
  15. date     91.04.11.12.55.30;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.14;
  18.  
  19. 1.14
  20. date     89.10.09.21.27.53;  author rab;  state Exp;
  21. branches ;
  22. next     1.13;
  23.  
  24. 1.13
  25. date     89.08.18.11.21.30;  author douglis;  state Exp;
  26. branches ;
  27. next     1.12;
  28.  
  29. 1.12
  30. date     89.08.17.11.15.49;  author douglis;  state Exp;
  31. branches ;
  32. next     1.11;
  33.  
  34. 1.11
  35. date     88.12.31.14.45.17;  author ouster;  state Exp;
  36. branches ;
  37. next     1.10;
  38.  
  39. 1.10
  40. date     88.11.27.16.29.20;  author ouster;  state Exp;
  41. branches ;
  42. next     1.9;
  43.  
  44. 1.9
  45. date     88.08.12.16.45.18;  author ouster;  state Exp;
  46. branches ;
  47. next     1.8;
  48.  
  49. 1.8
  50. date     88.07.20.14.47.33;  author ouster;  state Exp;
  51. branches ;
  52. next     1.7;
  53.  
  54. 1.7
  55. date     88.07.15.08.43.32;  author ouster;  state Exp;
  56. branches ;
  57. next     1.6;
  58.  
  59. 1.6
  60. date     88.07.13.10.17.49;  author ouster;  state Exp;
  61. branches ;
  62. next     1.5;
  63.  
  64. 1.5
  65. date     88.07.02.14.34.08;  author ouster;  state Exp;
  66. branches ;
  67. next     1.4;
  68.  
  69. 1.4
  70. date     88.06.17.08.51.27;  author ouster;  state Exp;
  71. branches ;
  72. next     1.3;
  73.  
  74. 1.3
  75. date     88.04.25.09.33.21;  author ouster;  state Exp;
  76. branches ;
  77. next     1.2;
  78.  
  79. 1.2
  80. date     88.04.04.22.56.37;  author deboor;  state Exp;
  81. branches ;
  82. next     1.1;
  83.  
  84. 1.1
  85. date     88.03.18.15.05.27;  author deboor;  state Exp;
  86. branches ;
  87. next     ;
  88.  
  89.  
  90. desc
  91. @Makefile template for library source directories
  92. @
  93.  
  94.  
  95. 1.16
  96. log
  97. @make sure all makefiles include TYPE
  98. @
  99. text
  100. @#
  101. # Prototype makefile for libraries.
  102. #
  103. # This Makefile is automatically generated.
  104. # DO NOT EDIT IT OR YOU MAY LOSE YOUR CHANGES.
  105. #
  106. # Generated from @@(TEMPLATE)
  107. # @@(DATE)
  108. #
  109. # For more information, refer to the mkmf manual page.
  110. #
  111. # $Header: /sprite/lib/mkmf/RCS/Makefile.library,v 1.15 91/04/11 12:55:30 kupfer Exp $ SPRITE (Berkeley)
  112. #
  113. # Allow mkmf
  114.  
  115. ALLSRCS        = @@(ALLSRCS)
  116. LINTSRCS    = @@(LINTSRCS)
  117. MACHINES    = @@(MACHINES)
  118. MAKEFILE    = @@(MAKEFILE)
  119. MANPAGES    = @@(MANPAGES)
  120. NAME        = @@(NAME)
  121. PUBHDRS        = @@(PUBHDRS)
  122. SYSMAKEFILE    = library.mk
  123. TYPE        = @@(TYPE)
  124. DISTDIR        ?= @@(DISTDIR)
  125. #include    <settm.mk>
  126.  
  127.  
  128. #if exists($(TM).md/md.mk)
  129. #include    "$(TM).md/md.mk"
  130. #endif
  131.  
  132. #if exists(local.mk)
  133. #include    "local.mk"
  134. #else
  135. #include    <$(SYSMAKEFILE)>
  136. #endif
  137.  
  138. #if exists($(TM).md/dependencies.mk)
  139. #include    "$(TM).md/dependencies.mk"
  140. #endif
  141. @
  142.  
  143.  
  144. 1.15
  145. log
  146. @Flush DEFTARGET: the default target is now determined by a pmake
  147. library file.
  148. @
  149. text
  150. @d12 1
  151. a12 1
  152. # $Header: /sprite/lib/mkmf/RCS/Makefile.library,v 1.14 89/10/09 21:27:53 rab Exp Locker: kupfer $ SPRITE (Berkeley)
  153. d23 1
  154. a23 1
  155. #include    <settm.mk>
  156. d26 1
  157. a27 1
  158. SYSMAKEFILE    = library.mk
  159. @
  160.  
  161.  
  162. 1.14
  163. log
  164. @Modifications for distribution.
  165. @
  166. text
  167. @d12 1
  168. a12 1
  169. # $Header: /sprite/lib/mkmf/RCS/Makefile.library,v 1.13 89/08/18 11:21:30 douglis Exp Locker: rab $ SPRITE (Berkeley)
  170. d23 1
  171. a23 1
  172. TM                ?= @@(DEFTARGET)
  173. @
  174.  
  175.  
  176. 1.13
  177. log
  178. @another change for TM -- use single machine if it exists, else \ds3100
  179. @
  180. text
  181. @d12 1
  182. a12 1
  183. # $Header: /sprite/lib/mkmf/RCS/Makefile.library,v 1.11 88/12/31 14:45:17 ouster Exp Locker: douglis $ SPRITE (Berkeley)
  184. d25 1
  185. @
  186.  
  187.  
  188. 1.12
  189. log
  190. @removed DEFTARGET -- we use $MACHINE now
  191. @
  192. text
  193. @d23 1
  194. a23 1
  195. TM                ?= $(MACHINE)
  196. @
  197.  
  198.  
  199. 1.11
  200. log
  201. @Use TYPE instead of INSTALLDIR, INSTALLMAN, etc.
  202. @
  203. text
  204. @d12 1
  205. a12 1
  206. # $Header: /sprite/lib/mkmf/RCS/Makefile.library,v 1.10 88/11/27 16:29:20 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  207. d23 1
  208. a23 1
  209. TM                ?= @@(DEFTARGET)
  210. @
  211.  
  212.  
  213. 1.10
  214. log
  215. @Various changes to completely replace old C library with new.
  216. @
  217. text
  218. @d12 1
  219. a12 1
  220. # $Header: /sprite/lib/mkmf/RCS/Makefile.library,v 1.9 88/08/12 16:45:18 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  221. a16 4
  222. INCLUDEDIR    = @@(INCLUDEDIR)
  223. INSTALLDIR    = @@(INSTALLDIR)
  224. INSTALLMAN    = @@(INSTALLMAN)
  225. LINTDIR        = @@(LINTDIR)
  226. d24 1
  227. @
  228.  
  229.  
  230. 1.9
  231. log
  232. @Remove -g switch from default CFLAGS.
  233. @
  234. text
  235. @d12 1
  236. a12 1
  237. # $Header: Makefile.library,v 1.8 88/07/20 14:47:33 ouster Exp $ SPRITE (Berkeley)
  238. a15 3
  239. LIBRARY        = @@(LIBRARY)
  240. MACHINES    = @@(MACHINES)
  241. TM                 ?= @@(DEFTARGET)
  242. d17 4
  243. a20 1
  244. PUBHDRS        = @@(PUBHDRS)
  245. d22 1
  246. d24 4
  247. a27 8
  248.  
  249. CC        = gcc
  250. LINTFLAGS    = -u
  251. CFLAGS        = -O
  252. CTFLAGS        = -wt
  253. INSTALLDIR    = @@(INSTALLDIR)
  254. LINTDIR        = @@(LINTDIR)
  255. INCLUDEDIR    = @@(INCLUDEDIR)
  256. @
  257.  
  258.  
  259. 1.8
  260. log
  261. @Add -O to gcc compiles.
  262. @
  263. text
  264. @d12 1
  265. a12 1
  266. # $Header: Makefile.library,v 1.7 88/07/15 08:43:32 ouster Exp $ SPRITE (Berkeley)
  267. d26 1
  268. a26 1
  269. CFLAGS        = -g -O
  270. @
  271.  
  272.  
  273. 1.7
  274. log
  275. @Compile with gcc.
  276. @
  277. text
  278. @d12 1
  279. a12 1
  280. # $Header: Makefile.library,v 1.6 88/07/13 10:17:49 ouster Exp $ SPRITE (Berkeley)
  281. d26 1
  282. a26 1
  283. CFLAGS        = -g
  284. @
  285.  
  286.  
  287. 1.6
  288. log
  289. @Eliminate "define_targets";  not needed anymore.
  290. @
  291. text
  292. @d12 1
  293. a12 1
  294. # $Header: Makefile.library,v 1.5 88/07/02 14:34:08 ouster Exp $ SPRITE (Berkeley)
  295. d24 1
  296. @
  297.  
  298.  
  299. 1.5
  300. log
  301. @Better support for lint, and for dummy lint files (*.lint).
  302. @
  303. text
  304. @d12 1
  305. a12 1
  306. # $Header: Makefile.library,v 1.4 88/06/17 08:51:27 ouster Exp $ SPRITE (Berkeley)
  307. a19 4
  308. SRCS        =
  309. HDRS        =
  310. OBJS        =
  311. CLEANOBJS    =
  312. a26 1
  313. INSTALLFLAGS    =
  314. a29 2
  315.  
  316. define_targets    = yes, please
  317. @
  318.  
  319.  
  320. 1.4
  321. log
  322. @Add stuff for target machines.
  323. @
  324. text
  325. @d12 1
  326. a12 1
  327. # $Header: Makefile.library,v 1.3 88/04/25 09:33:21 ouster Exp $ SPRITE (Berkeley)
  328. d25 1
  329. @
  330.  
  331.  
  332. 1.3
  333. log
  334. @Better comments for @@(SPECIALS) and @@(POSTINCLUDE)
  335. @
  336. text
  337. @d12 1
  338. a12 1
  339. # $Header: Makefile.library,v 1.2 88/04/04 22:56:37 deboor Exp $ SPRITE (Berkeley)
  340. d17 7
  341. a23 4
  342. OBJS        = @@(OBJS)
  343. CLEANOBJS    = @@(CLEANOBJS)
  344. SRCS        = @@(SRCS)
  345. HDRS        = @@(HDRS)
  346. d28 1
  347. a28 1
  348. CFLAGS        =
  349. d37 1
  350. a37 3
  351. # The label below is used as a special trigger for Makefile.sed scripts
  352. # to use to add extra stuff to the Makefile:
  353. # @@(SPECIALS)
  354. d39 3
  355. a41 2
  356. DEPFILE        = dependencies.mk
  357. #include    <library.mk>
  358. d43 5
  359. a47 3
  360. # Another label, for triggering Makefile.sed commands AFTER command.mk
  361. # is included:
  362. # @@(POSTINCLUDE)
  363. d49 3
  364. a51 4
  365. tags        : $(SRCS) $(HDRS)
  366.     $(CTAGS) $(CTFLAGS) $(.ALLSRC)
  367.  
  368. #include    "dependencies.mk"
  369. @
  370.  
  371.  
  372. 1.2
  373. log
  374. @Adapted to mkmf
  375. @
  376. text
  377. @d12 1
  378. a12 1
  379. # $Header: Makefile.library,v 1.1 88/03/18 15:05:27 deboor Exp $ SPRITE (Berkeley)
  380. d34 3
  381. a36 1
  382. #@@(SPECIALS) label to make adding special things easier
  383. d41 3
  384. a43 1
  385. #@@(POSTINCLUDE) another label
  386. @
  387.  
  388.  
  389. 1.1
  390. log
  391. @Initial revision
  392. @
  393. text
  394. @d7 2
  395. a8 1
  396. # It was generated from @@(TEMPLATE) on @@(DATE)
  397. d12 1
  398. a13 2
  399. # $Header: Makefile.library,v 2.3 87/10/16 10:41:16 brent Exp $ SPRITE (Berkeley)
  400. #
  401. d16 7
  402. d24 7
  403. a30 3
  404. # Which subdirectory are we in?  (.e.g., /sprite, /sprite/att, ...)
  405. LIBROOT =
  406. MODULE = 
  407. d32 1
  408. a32 4
  409. ROOT = /sprite
  410. SPRITEHOME = /sprite
  411. LIB =      ${LIBROOT}/lib
  412. LINT =      ${LIB}/lint
  413. d34 1
  414. a34 1
  415. KERNELLINT = ${ROOT}/src/kernel/Lint
  416. d36 2
  417. a37 6
  418. # If ${H} is /sprite/att/lib/include, ${OTHERH} should be 
  419. # /sprite/lib/include.  ${OTHERLINT} should be set accordingly.
  420. # ... obsolete, both are searched by default.  fix makemake not to use
  421. # OTHERH.  How about lint?  ... FD 8/26/87
  422. OTHERH = 
  423. OTHERLINT = 
  424. d39 1
  425. a39 10
  426. IFLAGS =  -I.
  427. DBX =       -g
  428. PROFILE = -p -DPROFILE
  429. PROFDIR=  ./Profiled
  430. DFLAGS =
  431. CFLAGS =  ${DBX} ${IFLAGS} ${DFLAGS}
  432. PCFLAGS = ${DBX} ${IFLAGS} ${DFLAGS} ${PROFILE}
  433. AFLAGS =  
  434. CTFLAGS = -t
  435. PPFLAGS = -E ${IFLAGS} ${DFLAGS}
  436. d41 2
  437. a42 3
  438. CC = cc -m68010
  439. AS = as -m68010
  440. LD = ld
  441. d44 1
  442. a44 109
  443. UPDATE = update
  444. DEPEND = depend.csh
  445. DEPENDSCRIPT = ${SPRITEHOME}/lib/ex.depend
  446.  
  447. .SUFFIXES: .po
  448.  
  449. OTHEROBJS =
  450. POTHEROBJS =
  451.  
  452. OBJS = 
  453.  
  454. POBJS = 
  455.  
  456. CSRCS = 
  457.  
  458. ASMSRCS = 
  459.  
  460. SRCS = ${CSRCS} ${ASMSRCS}
  461.  
  462. HDRS = 
  463. # makemake.library will make EXTERNHDRS  undefined if
  464. # there are no external header files.
  465. EXTERNHDRS = 
  466.  
  467. LINTFLAGS = ${IFLAGS} -u
  468. # For att, make LINTLIBS include libc.ln, and take out the LINTSRCS 
  469. # mumbo-jumbo.
  470. LINTLIBS = ${LINT}/libc.ln 
  471. ALLSRCS = ${SRCS} ${HDRS} Makefile
  472.  
  473. ${MODULE}.a: ${OBJS} ${OTHEROBJS}
  474.     rm -f ${MODULE}.a
  475.     ar cr ${MODULE}.a ${OBJS} ${OTHEROBJS}
  476.     ranlib ${MODULE}.a
  477.  
  478.  
  479. profile: ${PROFDIR}/${MODULE}.a
  480.  
  481. ${PROFDIR}/${MODULE}.a : ${POBJS} ${POTHEROBJS}
  482.     rm -f ${PROFDIR}/${MODULE}.a
  483.     ar cr ${PROFDIR}/${MODULE}.a ${POBJS} ${POTHEROBJS}
  484.     ranlib ${PROFDIR}/${MODULE}.a
  485.  
  486. tags: ${HDRS} ${CSRCS}
  487.     rm -f tags
  488.     ctags ${CTFLAGS} ${HDRS} ${CSRCS}
  489.  
  490. .c.po:
  491.     rm -f $*.po
  492.     -mv $*.o $*.so
  493.     ${CC} -c ${PCFLAGS} $*.c
  494.     mv $*.o $*.po
  495.     -mv $*.so $*.o
  496. .c.o:
  497.     rm -f $*.o
  498.     ${CC} ${CFLAGS} -c $*.c
  499.  
  500. .s.o:
  501.     rm -f $*.o
  502.     /lib/cpp ${PPFLAGS} $*.s > $*.pp
  503.     ${AS} ${AFLAGS} -o $*.o $*.pp
  504.     rm -f $*.pp
  505.  
  506. # install: ${LIB}/${MODULE}.a installhdrs installsrc ${LINT}/${MODULE}.ln
  507. install: ${LIB}/${MODULE}.a installhdrs instlint
  508.  
  509. installhdrs!
  510. #ifdef EXTERNHDRS
  511.     @@${UPDATE} ${EXTERNHDRS} ${H}
  512. #endif
  513.           
  514. ${LIB}/${MODULE}.a: ${MODULE}.a
  515.     rm -f ${LIB}/${MODULE}.a
  516.     cp ${MODULE}.a ${LIB}
  517.     ranlib ${LIB}/${MODULE}.a
  518. #    rdist -c ${MODULE}.a lust:/usr/sprite/lib/${MODULE}.a
  519.  
  520. instlint: ${LINT}/${MODULE}.ln
  521.  
  522. # The line for STUBS is used only in libc at present, but it is easier
  523. # to include it in the prototype and insert *Stub*.s from within
  524. # makemake.library than to figure out which files to insert from
  525. # within a libc-specific file such as Makefile.sed or Makefile.ex.
  526.  
  527. STUBS = 
  528.  
  529. ${LINT}/${MODULE}.ln: ${CSRCS}
  530.     rm -f ${LINT}/${MODULE}.ln
  531.     lint ${LINTFLAGS} -I${H}/kernel -C${MODULE} ${CSRCS}
  532.     mv llib-l${MODULE}.ln ${LINT}/${MODULE}.ln
  533.  
  534. lint:    ${CSRCS}  ${HDRS} ${LINTLIBS}
  535.     rm -f lint
  536.     lint ${LINTFLAGS} ${CSRCS} ${LINTLIBS} > lint
  537.  
  538. calls: ${CSRCS}
  539.     /usr/local/calls ${IFLAGS} ${CSRCS} > calls
  540.  
  541. clean:
  542.     rm -f lint *.o
  543.  
  544. #include <rdist.mk>
  545.  
  546. DEPFLAGS = -p
  547. DEPFILE = Makefile
  548. #include <makedepend.mk>
  549.  
  550. # below is automatically generated
  551. # DO NOT DELETE THIS LINE -- make depend depends on it.
  552. @
  553.